import os
import shutil
import random
path1="present_data4000"
path2="present_data2700"
data=os.listdir(path1)
crack_list=data[2668:3615]
hole_list=data[0:2667]
normal_list=data[3616:]
index=list(range(0,2667))
random.shuffle(index)
random.shuffle(hole_list)
hole_list=hole_list[0:950]
for idx,name in enumerate(normal_list):
    old_name=os.path.join(path1,name)
    new_name=os.path.join(path2,f"{idx+1896:04d}.jpg")
    shutil.copy(old_name,new_name)